from typing import List


def moveZeroes(nums: List):

    # i = 0
    # while i < len(nums):
    #     if nums[i] == 0 :
    #         nums.remove(nums[i])
    #         nums.append(0)
    #     i += 1
    # print(nums)

    n = len(nums)
    left = right = 0
    while right < n:
        if nums[right] != 0:
            nums[left], nums[right] = nums[right], nums[left]
            left += 1
        right += 1



nums = [0,1,0,3,12]

moveZeroes(nums)
